
public class subject1 {

	public static void main(String[] args) {
		int num = 1;
		int count = 0;
		while (num <= 10000) {
			if (num % 5 == 0) {
				System.out.print(num + " ");
				count++;
				if (count % 20 == 0) {
					System.out.print("\n");

				}
			}
			num++;

		}

	}

}
